[?php use_helper('Date', 'SEstadisticas') ?]
[?php echo_title('Detalles de <?php echo $this->getReadableName() ?>') ?]
<div id="admin_container">
  <h1>Detalles de <?php echo $this->getReadableName() ?></h1>

  [?php include_partial('flashes') ?]

  <div id="admin_content">
    <div id="admin_show">
    <table>
      <tbody>
<?php foreach ($this->configuration->getValue('list.display') as $name => $field): ?>
        <tr>
          <td class="admin_show_name"><?php echo $field->getConfig('label', '', true) ?>:</td>
          <td>[?php echo <?php echo $this->renderField($field) ?> ?]</td>
        </tr>
<?php endforeach ?>
<?php if ($this->table->hasRelation('Anexo')): ?>
        [?php include_partial('anexo/show_addon', array('anexos' => $anexos)) ?]
<?php endif ?>
      </tbody>
    </table>
    </div>
    
    <ul class="admin_actions">
      <li class="admin_action_edit">
        [?php echo link_to('Editar', '@<?php echo $this->getUrlForAction('edit')?>?id=' . $<?php echo $this->getSingularName()?>->getId()) ?]
      </li>
      <li class="admin_action_list">
        [?php echo link_to('Listar', '@<?php echo $this->getUrlForAction('list')?>') ?]
      </li>
      [?php if ($show_audit): ?]
      <li class="admin_action_list">
        [?php echo link_to('Historial de cambios', '@<?php echo $this->getUrlForAction('historic')?>?id=' . $<?php echo $this->getSingularName()?>->getId()) ?]
      </li>
      [?php endif ?]
    </ul>
  </div>
</div>